package com.atguigu.gmall.seckill.service;

import com.atguigu.gmall.model.activity.SeckillGoods;
import com.atguigu.gmall.seckill.pojo.SeckillOrder;
import com.atguigu.gmall.seckill.pojo.UserRecode;


import java.util.List;
import java.util.Map;

/**
 * @author jzq
 * @create 2021-07-14 18:58
 */
public interface SeckillService {
    /**
     *秒杀的service
     * @param time
     * @return
     */
    public List<SeckillGoods> getSeckillGoods(String time);

    /**
     * 商品详情
     *
     * @param time
     * @param id
     * @return
     */
    public SeckillGoods getSeckillGood(String time, String id);
    //秒杀下单
    public UserRecode addOrder(String time, String skuId, String userId);
    //查询用户的排队的信息
    public UserRecode getUserRecode(String userId);
    //查询秒杀详情列表
    public List<SeckillOrder> getSeckillOrderList(String username, String orderId);
    //支付成功
    public void paySuccess(Map<String,String> map);
    //支付失败
    public void payFail(Map<String, String> map);
}
